Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-es2015-constants

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-constants

Compile ES2015 constants to ES5

  • 6.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.2K
decreased by-1.92%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-transform-es2015-constants

Compile ES2015 constants to ES5

Installation

$ npm install babel-plugin-transform-es2015-constants

Usage

.babelrc

{
  "plugins": ["transform-es2015-constants"]
}

Via CLI

$ babel --plugins transform-es2015-constants script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-constants"]
});

Note

This transform on its own will compile const to let. If you need it to compile down to var then you must also install and enable transform-es2015-block-scoping.

Keywords

FAQs

Package last updated on 11 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc